package com.example.blog.service;

import com.example.blog.entity.SysUser;
import com.example.blog.vo.Result;
import com.example.blog.vo.UserVo;

public interface SysUserService {

    public UserVo findUserVoByAuthorId(Long id);

    public SysUser findUserById(Long id);

    public SysUser findUserByAccountAndPassword(String account, String password);

    /**
     * 根据token来查询用户信息
     *
     * @param token
     * @return
     */
    public Result findUserByToken(String token);

    public SysUser findUserByAccount(String account);

    public void save(SysUser sysUser);
}
